﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;

namespace QuotationService.HistoryQuotation
{
    /// <summary>
    /// 历史行情数据类
    /// </summary>
    internal class ComboQuotationInfo
    {
        public ObjectId _id;

        #region 属性（数据）
        /// <summary>
        /// 行情编号
        /// </summary>
        public Int32 SN { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///记录更新的时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 读取行情记录的时间
        /// </summary>
        public DateTime QuotationTime { get; set; }

        /// <summary>
        /// 所属用户的唯一标识
        /// </summary>
        public string AuthCode { get; set; }

        /// <summary>
        /// 买一价
        /// </summary>
        public double BuyPrice { get; set; }

        /// <summary>
        /// 卖一价
        /// </summary>
        public double SellPrice { get; set; }

        /// <summary>
        /// 加权平均买价
        /// </summary>
        public double BuyAutoCostPrice { get; set; }

        /// <summary>
        /// 卖盘均价
        /// </summary>
        public double SellAutoCostPrice { get; set; }

        /// <summary>
        /// 逐笔信息
        /// </summary>
        public ComboTickInfo Tick { get; set; }

        #endregion



        

    }

}
